﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="DisplaySearchForm.aspx.cs" Inherits="CodeDemon.Views.Review.DisplaySearchForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<%
    var statusList = from SL in ViewData.Model.DAO.ReviewStatus select SL;
    var userList = from UL in ViewData.Model.DAO.Users where UL.DisableUser == false select UL;
    
     %>

    <h2>Search Code Reviews</h2>
    <form action="/CodeDemon/Review/DisplaySearchResults" method="post">
    
        <div><span><label for="reviewStatusID">Review Status:</label>
            <select name="reviewStatusID">
                <option value="">Any</option>
                <% foreach (var s in statusList)
                   {%>
                <option value="<%= s.ReviewStatusID %>"><%=  s.StatusName%></option>
                <% } %>
            </select>
        </span></div>
        
        <div><span><label for="reviewOwnerID">Review Owner:</label>
                <select name="reviewOwnerID">
                <option value="">Any</option>
                <% foreach (var s in userList)
                   {%>
                <option value="<%= s.UserID %>"><%=  s.RealName%></option>
                <% } %>
            </select>
        </span></div>
        
        <div><span><label for="reviewTitle">Review Title:</label>
            <input type="text" name="reviewTitle" value="" />
        </span></div>

        <div><span><label for="reviewDesc">Review Description:</label>
            <input type="text" name="reviewDesc" value="" />
        </span></div>    
    
        <input type="submit" value="Run Search" />
    
    </form>

</asp:Content>
